package com.chenfei;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

/**
 * @author chenfei
 * @description
 * @since 2018/2/27
 */
@SpringBootApplication
@ServletComponentScan
@ComponentScan
@MapperScan(basePackages = "com.chenfei.mapper")
public class CatApplication {
    public static void main(String[] args) {
        SpringApplication.run(CatApplication.class);
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
